import 'package:flutter/material.dart';
import 'package:untitled33/presentation/pages/home_page.dart';
import 'package:untitled33/presentation/pages/details_page.dart';
import 'package:untitled33/presentation/pages/not_found_page.dart';

class RouteGenerator {  
  static Route<dynamic> generateRoute(RouteSettings settings) {
    switch (settings.name) {
      case '/':
        return MaterialPageRoute(builder: (_) => HomePage());
      case '/details':
        return MaterialPageRoute(builder: (_) => DetailsPage());
      default:
        return MaterialPageRoute(builder: (_) => NotFoundPage());
    }
  }
} 